﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Diagnostics;
using System.ComponentModel;
using WPFExcelReport.Helpers;
using System.Windows.Input;
namespace WPFExcelReport
{
    public partial class TWT07
    {
        public TWT07()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWTEINZ();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void LOADBYAUF()
        {
            base.LOADBYAUF();
        }

        public override void OnSave()
        {
            if (!IsSaved)
                return;
            if (dwMaster == null)
                return;
            TMV.UpdateWTEINZ(dwMaster, 0);
            string currentkey = KEY;
            KEY = "";
            KEY = currentkey;
            base.OnSave();
        }
        public override void OnEEZChg()
        {
            if (IsEdit)
                return;
            if (dwMaster == null)
                return;
            TMV.WTEEZ = EEZ;
            base.OnEEZChg();
        }

    }
}
